//
//  SearchView.m
//  NewMyMusicAPP
//
//  Created by 08- 张志强 on 15/6/25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SearchView.h"

@implementation SearchView

-(instancetype)initWithFrame:(CGRect)frame
{
    self= [super initWithFrame:frame];
    if (self) {
        
        [self search];
    }
    return self;
}

-(void)search
{
    
    UIImageView *imageV= [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"search_bar@3x.png"]];
    imageV.backgroundColor=[UIColor blackColor];
    imageV.frame=CGRectMake(0, 0,WIDTH * 375,HEIGHT * 50);

    [self addSubview:imageV];
    

    
    self.textField=[[UITextField alloc]initWithFrame:CGRectMake(WIDTH * 50, 0,WIDTH * 250,HEIGHT * 50)];
    self.textField.backgroundColor=[UIColor clearColor];
    self.textField.placeholder=@"请输入完整的艺人或MV";
    self.textField.font=[UIFont systemFontOfSize:18];
    [self addSubview:self.textField];
    
    self.hotLabel = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH * 10,HEIGHT * 70,WIDTH * 200,HEIGHT * 30)];
    self.hotLabel.backgroundColor=[UIColor clearColor];
    self.hotLabel.text=@"热门收索";
    self.hotLabel.numberOfLines=0;
    self.hotLabel.textColor=[UIColor orangeColor];
    self.hotLabel.font = [UIFont systemFontOfSize:16];
    [self addSubview:self.hotLabel];
    
    
    
    
}








/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
